package com.threeox.commonlibrary.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;

import com.threeox.commonlibrary.entity.engine.model.layout.ModelMessage;
import com.threeox.commonlibrary.ui.fragment.base.BaseModelFragment;
import com.threeox.commonlibrary.ui.view.engineview.model.ModelBaseView;

/**
 * 
 * @ClassName: ModelFragment
 * 
 * @Description: TODO()
 * 
 * @author 赵屈犇
 * 
 * @date 创建时间: 2017/8/10 11:11
 * 
 * @version 1.0
 * 
 */
public class ModelFragment extends BaseModelFragment {

    protected ModelMessage mModelMessage;
    protected ModelBaseView mModelBaseView;

    @Override
    protected View setView(ViewGroup container) {
        mModelBaseView = new ModelBaseView(mContext);
        return mModelBaseView;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        Intent intent = new Intent();
        if (mBundle != null) {
            intent.putExtras(mBundle);
        }
        mModelBaseView.initData(intent);
    }

    @Override
    protected void initDatas() {
        mModelMessage = mModelBaseView.getModelMessage();
        initBaseModelMessage(mModelBaseView);
    }

    @Override
    protected void setListener() {

    }
}
